package com.jfree.zk.curator;

/**
 * @author wangjian
 * @date 2019/7/16 16:36
 */
public class Main {
    public static void main(String[] args) {
       DistributedLock dk1=new DistributedLock("t2");
        DistributedLock dk2=new DistributedLock("t2");
        dk2.acquireLock();
        dk2.acquireLock();
        dk2.acquireLock();
        dk1.acquireLock();
        dk2.releaseLock();
    }
}
